<HTML><HEAD><TITLE>EplexInstance:eplex_var_get(+Var, ++What, -Value)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(eplex)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>EplexInstance:eplex_var_get(+Var, ++What, -Value)</H1>
Obtain information for an individual solver problem variable Var.
<DL>
<DT><EM>Var</EM></DT>
<DD>A solver problem variable for solver associated with EplexInstance
</DD>
<DT><EM>What</EM></DT>
<DD>Specification for information wanted (atom)
</DD>
<DT><EM>Value</EM></DT>
<DD>Returned value of What
</DD>
</DL>
<H2>Description</H2>
<P>
   Retrieve information about the (logically) most recent solver state and
   results related to a particular variable, for the eplex instance
   EplexInstance.  Fails if no solution has been computed yet.  What can
   take one of the following values:

<DL>
    <DT><TT>solution</TT>
    <DD>Returns the floating-point solution for variable Var.
<P>

    <DT><TT>typed_solution</TT>
    <DD>Returns the properly typed (integer or float) solution for variable
        Var, depending on if the variable was constrained to be an integer
        or not for EplexInstance.
<P>

    <DT><TT>reduced_cost</TT>
    <DD>Returns the reduced cost for variable Var. If the problem is a MIP, 
        then depending on the external solver, this is either unavailable
        or is the value at the optimal LP node. 
        Note that reduced cost is defined as the minimal amount the
        objective value will be changed by if the variable's value is
        increased by 1 from its solution value.

    <DT><TT>type</TT>
    <DD>Returns the type the variable Var is constrained to in
        EplexInstance. Possible values are integer or real.
</DL>
<P>
  Note that solution or reduced_cost can only be retrieved
  when previously requested in the option list of eplex_solver_setup/4,
  lp_demon_setup/5, lp_setup/4 or with lp_set/3.
</P>
<H3>Exceptions</H3>
<DL>
<DT><EM>(6) out of range </EM>
<DD>What is not a valid value.
<DT><EM>(6) out of range </EM>
<DD>Var is not a problem variable for EplexInstance.
<DT><EM>(6) out of range </EM>
<DD>What is unavailable; the information was not requested at solver setup.
<DT><EM>(40) stale object handle </EM>
<DD>Solver state had been previously destroyed.
</DL>

</BODY></HTML>
